#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_qtwidgets1.h"

class ICalculator;
class QtWidgets1 : public QMainWindow
{
  Q_OBJECT
private:
    ICalculator* m_cal = NULL;
    QtWidgets1();
    bool construct();

public:
    static QtWidgets1* NewInstance();
    void show();
    void setCalculator(ICalculator* cal);
    ICalculator* getCalculator();

    ~QtWidgets1();

private:
    Ui::QtWidgets1Class ui;
private slots:
  void onButtonClicked();
    
};
